<div ng-controller="InterfaceKeyNewCtrl">
  <!-- header -->
  <div ng-init="init()" class="wrapper bg-light lter b-b">
    <a ui-sref="app.interface.list({provider:providerid})" class="btn btn-sm btn-default w-xxs m-r-sm" tooltip="返回"><i class="fa fa-long-arrow-left"></i></a>
    
    <div class="btn-group pos-stc m-r-sm">
      <button ng-click="addState=true" class="btn btn-sm btn-default w-xxs w-auto-xs" tooltip="添加"><i class="fa icon-plus"></i></button>
    </div>
  </div>
  <!-- / header -->
 <ul class="list-group list-group-lg no-radius m-b-none m-t-n-xxs">

 <li ng-show="addState" class="list-group-item clearfix">
    <div class="col-lg-offset-2 col-lg-6">
      <div class="clear">
	      <form class="form-horizontal m-t-lg">
	      <div class="form-group">
				<div class="col-lg-5">
					<input type="text" required class="form-control" ng-model="addData.keyName">
				</div>
				<div class="col-lg-5">
					<input type="text" required class="form-control" ng-model="addData.KeyValue">
				</div>
				<a ng-click="save(null)" class="btn btn-sm btn-icon btn-info" tooltip="保存"><i class="fa  fa-save"></i></a>
		        <a ng-click="delete(null)" class="btn btn-sm btn-icon btn-danger" tooltip="删除"><i class="fa  icon-trash"></i></a>
			</div>
	      </form>
        
      </div>
    </div>
     </li> 
 
 
    <li ng-repeat="key in keys" class="list-group-item clearfix">
    <div ng-hide="key." class="col-lg-offset-2 col-lg-6">
      <div class="pull-right text-sm text-muted">
        <a ng-click="delete(key.id)" class="btn btn-sm btn-icon btn-danger" tooltip="删除"><i class="fa  icon-trash"></i></a>
      </div>
      <div class="clear">
        <div class="col-lg-4"><a class="text-md">{{key.keyName}}</a></div>
        <div class="col-lg-4"><a class="text-md">{{key.keyValue}}</a></div>
      </div>
    </div>
    
    <!-- <div class="col-lg-offset-2 col-lg-6">
      <div class="clear">
	      <form class="form-horizontal m-t-lg">
	      <div class="form-group">
				<div class="col-lg-5">
					<input type="text" required class="form-control" ng-model="path.host">
				</div>
				<div class="col-lg-5">
					<input type="text" required class="form-control" ng-model="path.name">
				</div>
				<a class="btn btn-sm btn-icon btn-info" tooltip="保存"><i class="fa  fa-save"></i></a>
		        <a class="btn btn-sm btn-icon btn-danger" tooltip="删除"><i class="fa  icon-trash"></i></a>
			</div>
	      </form>
        
      </div>
    </div> -->
     </li>     
  </ul>
  
